package com.huazhi.wzsnw.mapper;

import com.huazhi.wzsnw.model.Ddlined;
import org.apache.ibatis.annotations.Param;


import java.util.List;

public interface DdlinedMapper {

    int deleteByPrimaryKey(String tid);

    int insert(Ddlined record);

    int insertSelective(Ddlined record);

    Ddlined selectByPrimaryKey(String tid);

    Ddlined selectByDtuNum(String number);

    int updateByPrimaryKeySelective(Ddlined record);

    int updateByPrimaryKey(Ddlined record);

    List<String> selectListTidByKey(@Param("search") String search);

    List<Ddlined> findPagingByListTid(@Param("listTid") List<String> listTid,@Param("pageIndex") Integer pageIndex,@Param("pageSize") Integer pageSize);

    List<Ddlined> getAll();

    List<Ddlined> selectBuState(String state);

    List<Ddlined> selectByname(String name);

    Ddlined  seletLineByCun(String cun);

    int updateStateByNumber(@Param("state")String state,@Param("number")String number);
}
